xl: use json output by default
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Feb 2012 17:01:57 +0000 (17:01 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Feb 2012 17:01:57 +0000 (17:01 +0000)
commit9faa8b12d80ffb9615bc07adc2249af60c0e32f8
tree288e80d3464bd8e0a742f371162308d4707759f4
parent914e61c1ec5a7996a3e71692ce41e77359e70e0c
xl: use json output by default

Move the sxp producing code off into a separate file. It is supported
for legacy reasons and needn't be updated other than the improve
compatibility with xm.

libxl_domain_config is not currently generated by the IDL (adding the
necessary support for Array types is on my to do list) so hand code
the json generation function for now.

Since this rather directly exposes a libxl data structure it's not
clear what sort of forward compatibility guarantees we can
make. However it seems like it should be as stable as libxl's own API
(which we are looking to stabilise)

(Gratuitous string.h include needed for memset in libxl_util.h)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
docs/man/xl.pod.1
tools/hotplug/Linux/init.d/xendomains
tools/libxl/Makefile
tools/libxl/libxl.h
tools/libxl/libxl_json.c
tools/libxl/libxl_json.h
tools/libxl/xl.c
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_sxp.c [new file with mode: 0644]